<template>
  <div name="dsfimg" class="s-dsfimg">
    <!-- <img :src="src" @error="headError" /> -->
    <img v-lazy="src" />
  </div>
</template>
<script>
export default {
  name: "dsfimg",
  props: {
    src: {
      type: String,
    },
    errorSrc: {
      type: String,
    },
  },
  data() {
    return {};
  },
  methods: {
    headError(e) {
      e.target.src = this.errorSrc;
    },
  },
};
</script>
